import React, { FC } from 'react'
import { Carousel } from 'antd'
import styles from './index.module.scss'
const Home: FC = () => {
  const onChange = (currentSlide: number) => {
    console.log(currentSlide)
  }
  return (
    <>
      <Carousel afterChange={onChange} autoplay draggable={true}>
        <div className={styles.carouselItem}></div>
        <div className={styles.carouselItem}></div>
        <div className={styles.carouselItem}></div>
        <div className={styles.carouselItem}></div>
      </Carousel>
    </>
  )
}
export default Home
